<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>忘记密码</title>
<link rel="stylesheet"
	href="static/jquery-ui-themes-1.10.4/themes/ui-darkness/jquery-ui.css">
<link rel="stylesheet"
	href="static/jquery-ui-themes-1.10.4/themes/ui-darkness/jquery.ui.theme.css">
	<script type="text/javascript" src="static/jqgrid/js/jquery-1.7.2.min.js"></script>
<style type="text/css">
body {
	background: url("static/picture/login.jpg");
}

#contrainer {
	width: 300px;
	height: 200px;
	background: #111;
	color: #fff;
	margin: 300px auto;
}

#contrainer>p {
	margin-bottom: 0;
	margin-top: 0;
	padding: 0.4em 0;
	font-size: 18px;
	background: #222;
}

#contrainer s, #contrainer label {
	font-weight: bold;
	margin-left: 2em;
}

.ui-widget-content {
	font-size: 80%;
}


.parem-class {
	height: 5px;
}

.parem1-class {
	height: 5px;
}
</style>
	<script type="text/javascript">
	
	/*  	function meil(){
			  var aaa=$('#username').val();
			  console.log(aaa);
			$.post("meil",{meil:aaa},function(date){
				if(date==null){
					$('#parem').html("您输入的电子邮箱错误。");
				}else{
					$('#parem').html("");
				}
			})
		}  */
		  
		  
		  
		function aaa(obj){
		 var yhm=$('#username').val();
		$.post('huoqu',{username:yhm}
		);
		var countdown=60; 
		if (countdown == 0) { 
			obj.removeAttribute("disabled"); 
			obj.value="获取验证码"; 
			countdown = 60; 
			} else { 
			val.setAttribute("disabled", true); 
			val.value="重新发送(" + countdown + ")"; 
			countdown--; 
			} 
			setTimeout(function() { 
			settime(obj) 
			},1000) 
			
			
		}
	
	/* 	function ddd(strs){
			var str=strs;
				$.post('pdyz',{'yzm':str},function(date){
					if(!date){
						$('#parem1').html("验证码输入错误！");
					}
						$('#parem1').html("");
				})
			} */

		/* function xgmm() {
			var password = $('#password').val();
			var username = $('#username').val();
			$('#btn').load('xgmm?password='+password+'&username='+username);
		} */
	</script>
</head>
<body>


	<div id="contrainer" class="ui-widget ui-corner-all">
		<p class="ui-widget-content"><s>密码找回</s></p>
		<div class="ui-widget-content">
			<form action="save" method="post">
				<p style="font-weight: 500;">
					<label>电子邮箱：</label><input type="text" id="username" name="username"
						onblur="meil()">
				</p>
				<p class="parem-class" style="color: white;">
					<label id="parem" for="username"></label>
				</p>
				<p >
					<label>验证码：</label><input style="width: 80px" onchange="ddd(this.value)" type="text" id="yzm" name="yam">
					<input  id="btn" type="button" onclick="aaa(this);"
						style="margin-left: 10px;" value="获取验证码"  >
				</p>
				
				<div style="text-align: right; margin-bottom: 15px;">
					<button type="submit"  id="btn1" class="button">提交</button>
					<button style="margin-left: 20px; margin-right: 10px;"
						type="submit" onclick="window.location.href='login'">返回</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>